package com.fy.admin.controller;

import com.fy.common.api.CommonResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/admin")
@Api(tags = "登录")
@RefreshScope
public class Login {


    @ApiOperation("登录")
    @GetMapping(value = "/login/{acount}/{password}")
    public CommonResult login(@PathVariable String username, @PathVariable String password) {
        return CommonResult.success();
    }

    @ApiOperation("获取手机验证码")
    @GetMapping(value = "/getPhoneCode")
    public CommonResult getPhoneCode() {
        return CommonResult.success();
    }

    @ApiOperation("通过手机验证码修改密码")
    @PostMapping(value = "/updatePasswordByPhoneCode")
    public CommonResult updatePasswordByPhone() {
        return CommonResult.success();
    }

    @ApiOperation("注册")
    @PostMapping(value = "/register")
    public CommonResult Register() {
        return CommonResult.success();
    }

}
